package com.trkj.pojos;

import java.io.Serializable;
import javax.persistence.*;
import java.math.BigDecimal;
import java.util.Date;


/**
 * The persistent class for the MEDCINESTORE_ACCEPTDRUGS database table.
 * 
 */
@Entity
@Table(name="MEDCINESTORE_ACCEPTDRUGS")
@NamedQuery(name="MedcinestoreAcceptdrug.findAll", query="SELECT m FROM MedcinestoreAcceptdrug m")
public class MedcinestoreAcceptdrug implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	@Column(name="ACCEPTDRUGS_ID")
	private long acceptdrugsId;

	@Temporal(TemporalType.DATE)
	@Column(name="ACCEPTDRUGS_DATE")
	private Date acceptdrugsDate;

	@Column(name="ACCEPTDRUGS_MEDCINE_NUMBER")
	private BigDecimal acceptdrugsMedcineNumber;

	@Column(name="ACCEPTDRUGS_NOTE")
	private String acceptdrugsNote;

	//bi-directional many-to-one association to Medcinestore
	@ManyToOne
	@JoinColumn(name="MEDCINESTORE_ID")
	private Medcinestore medcinestore;

	//bi-directional many-to-one association to MedcineDetail
	@ManyToOne
	@JoinColumn(name="MEDCINE_ID")
	private MedcineDetail medcineDetail;

	//bi-directional many-to-one association to Staff
	@ManyToOne
	@JoinColumn(name="STAFF_ID")
	private Staff staff;

	public MedcinestoreAcceptdrug() {
	}

	public long getAcceptdrugsId() {
		return this.acceptdrugsId;
	}

	public void setAcceptdrugsId(long acceptdrugsId) {
		this.acceptdrugsId = acceptdrugsId;
	}

	public Date getAcceptdrugsDate() {
		return this.acceptdrugsDate;
	}

	public void setAcceptdrugsDate(Date acceptdrugsDate) {
		this.acceptdrugsDate = acceptdrugsDate;
	}

	public BigDecimal getAcceptdrugsMedcineNumber() {
		return this.acceptdrugsMedcineNumber;
	}

	public void setAcceptdrugsMedcineNumber(BigDecimal acceptdrugsMedcineNumber) {
		this.acceptdrugsMedcineNumber = acceptdrugsMedcineNumber;
	}

	public String getAcceptdrugsNote() {
		return this.acceptdrugsNote;
	}

	public void setAcceptdrugsNote(String acceptdrugsNote) {
		this.acceptdrugsNote = acceptdrugsNote;
	}

	public Medcinestore getMedcinestore() {
		return this.medcinestore;
	}

	public void setMedcinestore(Medcinestore medcinestore) {
		this.medcinestore = medcinestore;
	}

	public MedcineDetail getMedcineDetail() {
		return this.medcineDetail;
	}

	public void setMedcineDetail(MedcineDetail medcineDetail) {
		this.medcineDetail = medcineDetail;
	}

	public Staff getStaff() {
		return this.staff;
	}

	public void setStaff(Staff staff) {
		this.staff = staff;
	}

}